<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>Editing Pessoa</title>
            <link rel="stylesheet" type="text/css" href="/prp/jsfcrud.xhtml" />
        </head>
        <body>
        <h:panelGroup id="messagePanel" layout="block">
            <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
        </h:panelGroup>
        <h1>Editing Pessoa</h1>
        <h:form>
            <h:panelGrid columns="2">
                <h:outputText value="Id:"/>
                <h:outputText value="#{pessoa.pessoa.id}" title="Id" />
                <h:outputText value="Cpf:"/>
                <h:inputText id="cpf" value="#{pessoa.pessoa.cpf}" title="Cpf" />
                <h:outputText value="Nome:"/>
                <h:inputText id="nome" value="#{pessoa.pessoa.nome}" title="Nome" />

            </h:panelGrid>
            <br />
            <h:commandLink action="#{pessoa.edit}" value="Save">
                <f:param name="jsfcrud.currentPessoa" value="#{jsfcrud_class['br.adm.martins.prp.presentation.web.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][pessoa.pessoa][pessoa.converter].jsfcrud_invoke}"/>
            </h:commandLink>
            <br />
            <br />
            <h:commandLink action="#{pessoa.detailSetup}" value="Show" immediate="true">
                <f:param name="jsfcrud.currentPessoa" value="#{jsfcrud_class['br.adm.martins.prp.presentation.web.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][pessoa.pessoa][pessoa.converter].jsfcrud_invoke}"/>
            </h:commandLink>
            <br />
            <h:commandLink action="#{pessoa.listSetup}" value="Show All Pessoa Items" immediate="true"/>
            <br />

        </h:form>
        </body>
    </html>
</f:view>
